package com.jd.platform.gobrs.client.dispatcher;

import com.jd.platform.gobrs.client.manager.CacheManager;
import lombok.extern.slf4j.Slf4j;

import javax.annotation.Resource;

/**
 * @program: gobrs
 * @ClassName AbstractGCache
 * @description:
 * @author: sizegang
 * @create: 2022-01-08 22:34
 * @Version 1.0
 **/
@Slf4j
public abstract class AbstractGCacheBuilder implements GCacheBuilder {
    @Resource
    private GCacheDispatcher gCacheDispatcher;

    @Override
    public CacheManager dispatch(Integer cacheHandlerType) {
        return gCacheDispatcher.doDispatch(cacheHandlerType);
    }
}
